<template>
  <div class="App">
    <h1 class="content">我是App</h1>
  <button @click="getMsg">按钮</button>
    <Cont  ref="CountComp"/>
   </div>
</template>

<script>
import Cont from '@/components/Cont';

export default {
  name: 'App',
  components: {
    Cont,
  },
  methods:{
    getMsg(){
      console.log(this.$refs);
      // console.log(this.$refs.iptEle.value);
      console.log(this.$refs.CountComp.count++);
    }
  }
}
</script>


